# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-data-structure-util
pkgver=0.16
pkgrel=13
pkgdesc="Perl/CPAN Module Data::Structure::Util"
arch=("loong64" "x86_64")
url="https://search.cpan.org/dist/Data-Structure-Util"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/Data-Structure-Util-$pkgver.tar.gz")
sha256sums=('9cd42a13e65cb15f3a76296eb9a134da220168ec747c568d331a50ae7a2ddbc6')

build() {
  cd "$srcdir"/Data-Structure-Util-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Data-Structure-Util-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
